package defineordinal;

public enum Colors {

    RED(1, "红色"),
    GREEN(2, "绿色"),
    BLUE(3, "蓝色"),
    BLACK(4, "黑色"),
    WHITE(5, "白色");

    Colors(int flag, String name) {
        this.flag = flag;
        this.name = name;
    }

    private int flag;
    private String name;

    public int getFlag() {
        return flag;
    }

    public String getName() {
        return name;
    }
}
